#define _CRT_SECURE_NO_WARNINGS 1


#include <vector>
#include <time.h>
#include "my_map.h"
#include "my_set.h"
int main()
{
	vector<int> v;
	int n = 100;
	srand(time(0));
	for (int i = 0; i < n; i++)
	{
		v.push_back(rand() + i);
	}
	my_std::my_map<int, int> rb;
	my_std::my_set<int> st;
	int arr[] = { 9,8,7,6,5,4,3,2 };

	for (auto e : v)
	{
		rb.insert(std::make_pair(e, e));
		st.insert(e);
	}
	rb.IsBalance();
	cout << rb.Height() << endl;

	auto it = rb.begin();
	while (it != rb.end())
	{
		cout << it->first <<" "<<it->second<< endl;
		++it;
	}

	for (auto& e : st)
	{
		cout << e << endl;
	}

	
	return 0;
}